<layout name="../../Resource/Common/master" />

<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i>主页</a></li>
    <li><a href="#">菜单管理</a></li>
    <li><a href="#">菜单列表</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">菜单列表</h3>
</div>
<div class="row">
    <div class="col-sm-9 col-sm-offset-1">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">菜单列表</header>
            <div class="panel-body">
                <table class="table table-hover">
                	<thead>
                		<tr>
                			<th>编号</th>
                			<th>标题</th>
                			<th>操作</th>
                		</tr>
                	</thead>
                	<tbody>
                    <volist name="data" id="vo">
                		<tr>
                			<td>{$vo['bid']}</td>
                			<td>{$vo['bname']}</td>
                			<td>
                                <div class="btn-group">
                                    <if condition="$vo['bstatus'] eq 0 ">
                                        <a href="{:site_url('button/push',['bid'=>$vo['bid']])}" class="btn btn-default btn-primary btn-xs">推送</a>
                                        <else />
                                        <a href="javascript:;" class="btn btn-default btn-info btn-xs">已使用</a>
                                    </if>

                                       <a href="{:site_url('button/add',['bid'=>$vo['bid']])}" class="btn btn-default btn-success btn-xs">编辑</a>
                                        <a href="{:site_url('button/del',['bid'=>$vo['bid']])}" class="btn btn-default btn-danger btn-xs">删除</a>
                                </div>
                            </td>
                		</tr>
                    </volist>
                	</tbody>
                </table>
            </div>
        </section>
        <div class="btn-group">
            <a href="{:site_url('button/add')}" class="btn btn-success">添加菜单</a>
        </div>
    </div>
</div>
<script>
   function controller($scope, $, _){
    }
</script>

